export default [
    {
        // 功能查看
        path: '/functionView',
        component: (resolve) => {
            require(['../views/functionView/functionView.vue'], resolve)
        },
        meta: {
            code: '1010101',
            title: '功能查看',
            requireAuth : true
        }
    }, {
        // 角色管理
        path: '/role',
        component: (resolve) => {
            require(['../views/role/role.vue'], resolve)
        },
        meta: {
            code: '1010102',
            title: '角色管理',
            requireAuth : true
        }
    }, {
        // 新增角色
        path: '/addRole',
        component: (resolve) => {
            require(['../views/addRole/addRole.vue'], resolve)
        },
        meta: {
            code: '1010102-add',
            title: '新增角色',
            requireAuth : true
        }
    }, {
        // 编辑角色
        path: '/editRole/:id',
        component: (resolve) => {
            require(['../views/addRole/editRole.vue'], resolve)
        },
        meta: {
            code: '1010102-edit',
            title: '计划列表',
            requireAuth : true
        }
    }, {
        // 复制角色
        path: '/copyRole/:id',
        component: (resolve) => {
            require(['../views/addRole/copyRole.vue'], resolve)
        },
        meta: {
            code: '1010102-copy',
            title: '计划列表',
            requireAuth : true
        }
    }, {
        // 员工管理
        path: '/employee',
        component: (resolve) => {
            require(['../views/employee/management.vue'], resolve)
        },
        meta: {
            code: '1010104',
            title: '计划列表',
            requireAuth : true
        }
    }, {
        // 职能管理
        path: '/duty',
        component: (resolve) => {
            require(['../views/duty/management.vue'], resolve)
        },
        meta: {
            code: '1010103',
            title: '职能管理',
            requireAuth : true
        }
    }, {
        // 日志记录
        path: '/log',
        component: (resolve) => {
            require(['../views/Log/Log.vue'], resolve)
        },
        meta: {
            code: '1010105',
            title: '日志记录',
            requireAuth : true
        }
    },
    {
        // 客户管理
        path: '/client',
        component: (resolve) => {
            require(['../views/client/management.vue'], resolve)
        },
        meta: {
            code: '1010105',
            title: '客户管理',
            requireAuth : true
        }
    },
    {
        // 新增客户
        path: '/addClient',
        component: (resolve) => {
            require(['../views/addClient/addClient.vue'], resolve)
        },
        meta: {
            code: '1010105-add',
            title: '添加客户',
            requireAuth: true
        }
    },
    {
        // 我的主页
        path: '/user',
        component: (resolve) => {
            require(['../views/User/User.vue'], resolve)
        },
        meta: {
            code: '1010201',
            title: '我的主页',
            requireAuth : true
        }
    }, {
        // 系统设置
        path: '/setting',
        component: (resolve) => {
            require(['../views/Setting/Setting.vue'], resolve)
        },
        meta: {
            code: '1010202',
            title: '计划列表',
            requireAuth : true
        }
    }, {
        // 发信息
        path: '/sendMessage',
        component: (resolve) => {
            require(['../views/message/sendMessage.vue'], resolve)
        },
        meta: {
            title: '计划列表',
            requireAuth : true
        }
    }, {
        // 密码
        path: '/password/:id',
        component: (resolve) => {
            require(['../views/password/password.vue'], resolve)
        },
        meta: {
            // code:'22222222222',
            title: '计划列表',
            requireAuth : true
        }
    }
]

